Hello and welcome to the part two of this functionality for the app using javascript.
I have added a chunk of could here from line 92 to a hundred and twelve.
This function here will display the corrent question and the choicest saw line 94.
I DOING A consider lock up past it in this play corrinne question.
So when the current question is display it will show it on the console on the screen.
Line 9 to six declared the variable here court question and set it to cause 2 questions and then pass
it an array of corrent question dot QUESTION So that's the horacio you pick up the questions from that
read.
We remember we we define a variable at the very beginning.
Call questions.
Okay so and we also define some more variables here like 55 will go a variable Kwas Coran question and
we've got one called Current answers so those are the variables it's referring to.
Alright so you say is variable.
Question you asked a question which is that variable and is passed it current question What question.
Variable question class again equals to.
Could we see a dollar sign.
Joe query it cause to this method again he picks up the list.
This is the container contained under wraps did not contain.
If so if this container is greater than the question then 98 with God.
Choice is the variable called choices.
Again if that method dot quiz is greater than choice list these are what the what the various variables
are being defined.
And these are the values.
Here we use invis here to set the question class again.
This here is a comment of just porkier squoze don't class.
Don't text or question.
This will remove all corrent.
I elma's if there's any Okay.
That's what this means.
Choice does find a lie and then remove them here.
Variable one of several variable choice.
Got a loopier.
Same for hi.
The first vote equals the 0 and the II is less than number of choices and then increase as to increase
the question by 1.
If the choice is equal to the questions choring questions or choices you posted I will seise the represents
Behi as accountant who represents one.
So here again we isn't a dollar sign and this the fly list is and the airline is list too.
It puts a radio button and can't say to the radio button.
Each time their choice is made and then it upends it to the list.
Okay it your choice is this me.
Yeah penza to the list.
The final function I've added here is from line a hundred and twelve to a hundred twenty five is a function
called Reset quizes function will reset the quiz and enable you to start again.
So the reason this is what will happen when the quiz is reset.
The current question is silly.
The common question is of course zero correct answer is of course zero.
It will hide the score.
It will call this function.
This function is called function or method called high score so it will hide the school.
And then here on the function function call displays from on here would display the score is seen if
the document of fine container is greater than the result text.
Then it displays this text to see if you scored x an x amount plus correlli Display what you do display
that text that says you scored pylos.
The correct answer you've answer plots out of question for example you will say he scored five out of
his gold for score.
So for example four questions how 12 eight.
Okay that's what that means.
And then he does the same thing and then he shows a result using this show method he shows.
We resolved here after a displeased that then what a function called Hyde score.
This world used a document dump find resolved and it will hide the result.
So all those functions would be used in various parts of the could sort of that's or the court for the
functionality for the queen's hat.
If you have any questions please let me know.
So these are all the code.
Is there any parcel that you don't understand.
Please let me know.
So let's see it.
Thanks for watching.
Bye for now.